<?php
// print_r($_GET);
// 删除数据库
$link=mysqli_connect("localhost","root","root","2113");
$id=$_GET['id'];
$sql="DELETE FROM student WHERE id=$id";
$res=mysqli_query($link,$sql);
if($res){
	$info['status']=1;
	$info['data']="添加成功";
	}else{
	$info['status']=0;
	$info['data']="添加失败";
	}
	echo json_encode($info);;

?>